using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class dim_ageMap : EntityTypeConfiguration<dim_age>
    {
        public dim_ageMap()
        {
            // Primary Key
            this.HasKey(t => t.d_w_age_id);

            // Properties
            this.Property(t => t.reserv_1)
                .HasMaxLength(20);

            // Table & Column Mappings
            this.ToTable("dim_age");
            this.Property(t => t.d_w_age_id).HasColumnName("d_w_age_id");
            this.Property(t => t.age_min).HasColumnName("age_min");
            this.Property(t => t.age_max).HasColumnName("age_max");
            this.Property(t => t.reserv_1).HasColumnName("reserv_1");
        }
    }
}
